<?php // print_r($testi_qry_limited); ?>

<div id = "testi-wrap-main">
	<h2>Testimonials</h2>
	<ul id = "testi-wrap">
	<?php foreach ($testi_qry_limited as $row): ?>
			<li>
				<div id = "testi-info">
					<p><?php echo $row->testimonial; ?></p>
				</div>
				<div id = "testi-user">
					<p class = "testi-uname"> - <?php echo $row->firstname; ?> <?php echo $row->lastname; ?></p>
				</div>
			</li>
	<?php endforeach; ?>
	</ul>
</div>

	<div id = "testi-pagination">
		<?php echo $pagination; ?>
	</div>

<?php if (isset($_SESSION['is_logged_in']) && $_SESSION['is_logged_in']) : ?>
	<div id = "testi-form">
		<form id = "add-testimonial-form" name = "add-testimonial-form" method = "POST">
		<input id = "hidden" type = "hidden" value = "<?php echo base_url();?>testimonial/create_testimonials"/>
			<div class = "error"></div>
			<p><textarea id = "testi-message" name = "testi-message"></textarea></p>
			<p>
				<div id = "testi_captcha"style = "float:left">
					<img src="<?php echo base_url(); ?>index.php/captcha" title="Captcha" alt="Catcha" />
					<input id="captcha" type="text" value=""  name="captcha" maxlength="10" />
					<input id = "hidden-captcha" type = "hidden" value = "<?php echo base_url();?>testimonial/captcha_validate"/>
				</div>
			</p>

			<p><input type = "submit" name = "" value = "Submit Testimonials" /> </p>
		</form>
	</div>
	<div style="clear:both"></div>
	<div><img src="<?php echo base_url().'assets/images/'.$bottom_ads[0]->banner; ?>"></div>
<?php else: ?>

<?php endif; ?>


